package com.bingbaihanji.springbooth2basedemo.pojo;

import com.alibaba.fastjson2.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.TimeZone;


/**
 * @author 冰白寒祭
 * @date 2023-11-13 00:44:11
 * @description //TODO
 */
@Data
@TableName("users")
public class Users {
    @TableId(value = "id")
    private Long id;
    private String name;
    private Integer age;
    private String email;
    @TableField(value = "createTime",fill = FieldFill.INSERT_UPDATE)
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @TableField(value = "updateTime",fill = FieldFill.INSERT)
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;

}